package ru.bytedog.oiot.counter.bot.service.command;

import org.springframework.stereotype.Service;
import org.telegram.telegrambots.meta.api.objects.Message;
import ru.bytedog.oiot.counter.bot.bean.BotAnswer;

@Service
public class DefaultCommand implements BotCommand {

    @Override
    public CommandEnum getCommand() {
        return CommandEnum.DEFAULT;
    }

    @Override
    public BotAnswer commandProcess(Message message) {
        BotAnswer answer = new BotAnswer();
        answer.setChatId(String.valueOf(message.getChatId()));
        answer.setMessage("Не удалось распознать команду");
        return answer;
    }
}
